const state = {
  token: '',
  userInfo: {
    username: 'tom',
    mobile: '13233333333',
    roles: {
      menus: ['权限一', '权限二']
    }
  }
}

const mutations = {
  setToken(state, payload) {
    state.token = payload
  }
}
const actions = {}

export default {
  namespaced: true,
  state, 
  mutations, 
  actions
}